package cupiPhoneInterfaz;

import java.awt.BorderLayout;
import javax.swing.JPanel;
import javax.swing.JFrame;
import java.awt.Dimension;
import java.awt.Rectangle;
import javax.swing.JButton;
import javax.swing.JLabel;
import java.awt.event.KeyEvent;
import java.awt.Point;
import javax.swing.ImageIcon;

public class FrameSmS extends JFrame
{

    private static final long serialVersionUID = 1L;
    private JPanel jContentPane = null;
    private Teclado teclado = null;
    private JButton jButtonEnviar = null;
    private JButton jButtonExit = null;
    private JLabel jLabelBack = null;
    private JLabel jLabelBack1 = null;
    private JButton jButtonAuto = null;
    private JButton jButtoncunter = null;
    private CupiPhoneInterfaz principal;
    private JButton jButton = null;  //  @jve:decl-index=0:visual-constraint="590,212"
    /**
     * This is the default constructor
     */
    public FrameSmS( CupiPhoneInterfaz cpi )
    {
        super( );
        principal = cpi;
        initialize( );
    }
    /**
     * This method initializes this
     * 
     * @return void
     */
    private void initialize( )
    {
        this.setSize(320, 480);
        this.setName("Mensages de Texto");
        this.setContentPane( getJContentPane( ) );
        this.setTitle("Mensages de Texto");
    }
    /**
     * This method initializes jContentPane
     * 
     * @return javax.swing.JPanel
     */
    private JPanel getJContentPane( )
    {
        if( jContentPane == null )
        {
            jLabelBack1 = new JLabel();
            jLabelBack1.setIcon(new ImageIcon("C:/tempo2/cupiPhone/data/Image2.gif"));
            jLabelBack1.setText("");
            jLabelBack1.setBounds(new Rectangle(-47, -17, 320, 502));
            jLabelBack1.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);
            jLabelBack = new JLabel();
            jLabelBack.setDisplayedMnemonic(KeyEvent.VK_UNDEFINED);
            jLabelBack.setLocation(new Point(288, -23));
            jLabelBack.setSize(new Dimension(320, 480));
            jLabelBack.setIcon(new ImageIcon("C:/tempo2/cupiPhone/data/Image2.gif"));
            jLabelBack.setText("");
            jContentPane = new JPanel( );
            jContentPane.setLayout(null);
            jContentPane.add(getTeclado(), this);
            jContentPane.add(getJButtonEnviar(), null);
            jContentPane.add(getJButtonExit(), null);
            jContentPane.add(getJButtonAuto(), null);
            jContentPane.add(getJButtoncunter(), null);
            jContentPane.add(jLabelBack, null);
        }
        return jContentPane;
    }
    /**
     * This method initializes teclado	
     * 	
     * @return cupiPhoneInterfaz.Teclado	
     */
    private Teclado getTeclado( )
    {
        if( teclado == null )
        {
            teclado = new Teclado( );
            teclado.setBounds(new Rectangle(33, 4, 235, 320));
            teclado.add(jLabelBack1, null);
        }
        return teclado;
    }
    /**
     * This method initializes jButtonEnviar	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonEnviar( )
    {
        if( jButtonEnviar == null )
        {
            jButtonEnviar = new JButton( );
            jButtonEnviar.setBounds(new Rectangle(19, 391, 113, 36));
            jButtonEnviar.setText("Enviar");
        }
        return jButtonEnviar;
    }
    /**
     * This method initializes jButtonExit	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonExit( )
    {
        if( jButtonExit == null )
        {
            jButtonExit = new JButton( );
            jButtonExit.setBounds(new Rectangle(167, 391, 113, 36));
            jButtonExit.setText("Cancelar");
            jButtonExit.addActionListener( new java.awt.event.ActionListener( )
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                   dispose( );
                }
            } );
        }
        return jButtonExit;
    }
    /**
     * This method initializes jButtonAuto	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtonAuto( )
    {
        if( jButtonAuto == null )
        {
            jButtonAuto = new JButton( );
            jButtonAuto.setText("Dar Cantidad palabras Diccionario");
            jButtonAuto.setSize(new Dimension(227, 29));
            jButtonAuto.setLocation(new Point(5, 325));
            jButtonAuto.addActionListener( new java.awt.event.ActionListener( )
            {
                public void actionPerformed( java.awt.event.ActionEvent e )
                {
                  principal.palabrasDiccionario();
                }
            } );
            
        }
        return jButtonAuto;
    }
    /**
     * This method initializes jButtoncunter	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButtoncunter( )
    {
        if( jButtoncunter == null )
        {
            jButtoncunter = new JButton( );
            jButtoncunter.setBounds(new Rectangle(5, 356, 227, 29));
            jButtoncunter.setText("Contar Palabras y Caracteres");
        }
        return jButtoncunter;
    }
    /**
     * This method initializes jButton	
     * 	
     * @return javax.swing.JButton	
     */
    private JButton getJButton( )
    {
        if( jButton == null )
        {
            jButton = new JButton( );
        }
        return jButton;
    }

}  //  @jve:decl-index=0:visual-constraint="10,10"
